<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="__STATIC__/index/css/quan_common.css" rel="stylesheet" type="text/css">
    <link href="__STATIC__/index/css/single.css" rel="stylesheet" type="text/css">
    <link href="__STATIC__/index/css/common.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/index/css/bootstrap.css"/>
    <script src="__STATIC__/index/js/jquery-3.2.1.js"></script>
    <title>我的商品</title>
    <link href="__STATIC__/index/css/quan_order.css" rel="stylesheet">
    <script src="__STATIC__/index/js/jquery-3.2.1.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>

    	<style type="text/css">
  	  .seller_mygoods a{
    	color: #3286ff;
			background: #eff6ff;
    }
  </style>

</head>

 <script type="text/javascript">
 	 function click_xj(id){
 	 	$.ajax({
 	 		type:"post",
 	 		url:"{:url('index/seller/sp_xj')}",
 	 		data:{id:id},
 	 		success:function(res){
 	 		 if(res['code']==1)	{
 	 		 	layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert(res.msg, {icon: 1},function(){
				     location.reload(); 
			      });
			    });              
			 		return false;
 	 		 }else if(res['code']==0){
 	 		 	layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert(res.msg, {icon: 2});
					});              
			 		return false;
 	 		 }
 	 			
 	 		}
 	 	});
 	 	
 	 	
 	 }
 </script>
    <style>
    .acitve_layer_open {
        text-align: left;
        font-size: 12px;
        line-height: 22px;
        padding: 30px 20px;
        color: #555;
        border-bottom: solid 1px #f1f1f1;
    }

    .acitve_layer_open span {
        color: #FF6633;
    }

    .acitve_layer_open p {
        color: #333;
        padding-bottom: 2px;
    }
    .side-icon {
    display: inline-block;
    background: url(__STATIC__/index/img/single_icon.png);
    overflow: hidden;
    position: relative;
    zoom: 1;
    z-index: 1;
}
        </style>
  <body>
    
{include file='common/heade'}
 <div class="single_center w_1200">
{include file='common/left'}

        <!--左侧菜单统计事件-->
        <script>
            $('.single_l_nav dl dd').find('a').on('click', function () { count("dth_1003", "cd_" + $(this).find('b').html()) });
        </script>

        <div class="single_r_center">
            <div class="single_h3_tab row-s">
                <h3 class="col-6">
                    我的商品
                </h3>
                <div class="col-6 text-right">
                    <!--<a href="#" class="goto_lq">进入领券直播</a>-->
                    <a href="{:url('index/seller/newgoods')}" class="single-btn btn-primary btn-min">发布新单</a>
                </div>
                <div class="ov_h"></div>
            </div>

            
            <div class="row-s single_search or-nav">
                <div class="col-8 change_goods">
                    <a href="{:url('index/Seller/zxGoods','ip=0')}" class="ol-all"><span class="tj ">全部商品</span>(<span id="fd_num_all ">{$aggregate.whole}</span>)</a>
                    <a href="{:url('index/Seller/zxGoods','ip=1')}" class="ol-wx"><span class="tj ">在线商品</span>(<span id="fd_num_wx ">{$aggregate.line}</span>)</a>
                    <a href="{:url('index/Seller/zxGoods','ip=4')}" class="ol-waite"><span class="tj ">预售</span>(<span id="fd_num_ds ">{$aggregate.booking}</span>)</a>
                    <a href="{:url('index/Seller/zxGoods','ip=2')}" class="ol-waite"><span class="tj ">待审核</span>(<span id="fd_num_ds ">{$aggregate.examine}</span>)</a>
                    <a href="{:url('index/Seller/zxGoods','ip=3')}" class="ol-waite"><span class="tj ">无效商品</span>(<span id="fd_num_ds ">{$aggregate.Invalid}</span>)</a>

                </div>
               
                <div class="col-4 text-right ">
                    <div class="form ">
                    	<form action="{:url('index/Seller/zxGoods','ip=5')}" method="post">
                        <input name="keywords" class="ol-ipt " type="text " id="keywords1 " placeholder="输入商品ID进行搜索" value="" />
                        <button type="button " class="iconfont icon-search " ></button>
                    	</form>
                    </div>
                </div>
                <div class="ov_h "></div>
            </div>

            <!--独家保护公告-->
			<style>
				.single_tab_msg{
					padding-top:15px;
				}
				.single_tab_msg .single_tab_time{
					display:flex;
					flex-direction: row;
				}
				.single_tab_msg .single_tab_time>div{
					padding: 5px 20px;
					font-size:16px;
					border: 1px solid #ccc;
					margin-left: 20px;
					border-radius: 5px;
					cursor:pointer
				}
				.single_tab_msg .single_tab_time .checked{
					color: #4c6cc9;
					background: #ecf3ff;
					border-color: #ecf3ff;
				}
			</style>
         <!-- <div class="single_tab_msg">
          	<div class="single_tab_time">
          		 <div class="now_bill single_tab_type">
               	实时订单
               </div>
               <div class="res_bill single_tab_type">
               	预售
               </div>
          	</div>
              
            </div>-->


            <div class="single_table_quan ">
                <table class="single_table ">
                    <thead>
                        <tr>
                            <th width="100px " class="text-center sort" style="min-width:100px">
                                <a href="javascript:void(0) " class="sort-btn time " data-name="add " data-sort="-1 ">
                                    <span>申请时间</span>
                                    <i class="side-icon side-icon-def "></i>
                                </a>
                            </th>
                            <th width="100px" style="min-width:100px">主图 </th>
                            <th width="110px" style="min-width:110px">短标题 </th>
                            <th width="300px" style="min-width:100px">文案 </th>
                            <th width="100px" style="min-width:80px">券后价 </th>
                            <th width="100px" style="min-width:80px">佣金 </th>
                            <th width="100px" class="sort" style="min-width:100px">
                                <a href="javascript:void(0) " class="sort-btn yhq " data-name="quan " data-sort="-1 ">
                                    <span>优惠券</span>
                                    <i class="side-icon side-icon-def "></i>
                                </a>
                            </th>
                            <th width="120px" class="sort " style="position: relative;min-width:120px" ui-select data-on="mouseover">
                                <a href="javascript:void(0) " class="sort-a time ">
                                    <span>起止时间 </span>
                                    <i class="side-icon side-icon-def "></i>
                                </a>
                            </th>
                            <th width="100px" class="text-center" style="min-width:100px">状态 </th>
                            <th width="100px" style="min-width:80px">操作 </th>
                        </tr>
                    </thead>
                    
                    <tbody>
                    	{foreach $arry as $val}
                        <tr>
                            <td class="text-center ">
                                <p>{$val['add_time']|date="Y-m-d ",###}</p>
                                <span class="col-secondary ">{$val['add_time']|date="H:i",###}</span>
                            </td>
                            <td class="img ">
                                <a href="{$val['web_address']}" class="zt " title="去淘宝查看 ">
                                    <img width="70px " src="{$val['large_img']}"alt=" ">
                                </a>
                            </td>
                            <td>
                                <p class="name ">{$val['title']}</p>
                            </td>
                            
                            <td class="col-secondary ">
                                <p>{$val['letters']}</p>
                            </td>
                            
                            <td class="font-size16 ">
                                <p>{$val['last_price']}</p>     
                           
                            </td>
                            <td class="proportion ">
                                <p class="load ">{$val['commision']}<span>%</span></p>
                            </td>
                            <td class="prop_quan ">
                                <a class="prop_money " href="# ">
                                    <span><i class="i1 "></i>￥{$val['coupon_price']} <i></i></span>
                                </a>
                                <p>已领</p>
                                <p>{$val['sy_coupon_nums']}<span class="col-secondary ">/{$val['coupon_nums']}</span></p>
                            </td>
                        <td>
                            	  
                                <p>{$val['sale_time']|date="Y-m-d ",###}</p>
                                <span class="col-secondary ">{$val['sale_time']|date="H:i",###}</span>
                                <p style="width: 2.5em; " class="text-center ">至</p>
                                <p>{$val['end_time']|date="Y-m-d ",###}</p>
                               <span class="col-secondary ">{$val['end_time']|date="H:i",###}</span>
                                
                            </td>
                            <td class="text-center ">
                            	 {if($val['status']==1)}
                                <p>审核中</p>
                                {elseif($val['status']==2)}
                                <p>进行中</p>
                                {elseif($val['status']==3)}
                                <p>被拒绝</p>
                                {elseif($val['status']==4)}
                                <p>下架</p>
                                {/if}
                            </td>
                            <td class="table_btn ">
                                <p><a href='{$val['web_address']}' class='col-gray ' title='查看详情' target="_blank">查看</a></p>
                                {if ($val['status']!=4)}
                                <p><a href="{:url('index/seller/updateseller',array('id'=>$val.id))}" class='col-gray modify' title='你可以继续编辑'>修改</a></p>
                                <p><a id='xiajia_20307814' href='javascript:;' class='xiajia col-gray' title='你可以对商品进行下架' onclick="click_xj({$val['id']})">下架</a></p>
                                {else}
                                <p><a href="{:url('index/seller/newgoods',array('id'=>$val.id))}" class='col-gray modify' title='你可以继续编辑'>重新提交</a></p>
                                {/if}
                              <!--  <p><a href='javascript:;' id='zsbeizhu_20307814' class='zsbeizhu col-gray' title=''
                                        onclick="click_alert()">备注</a></p>-->
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>

               <!-- <div align='center' class='quan_page'><br />
                    <div class='page_total'>共 <b>3</b> 条</div>
                    <div class='page_index'>首页</div>
                    <div class='page_ref'>上一页</div>
                    <div class='page_next'>下一页</div>
                    <div class='page_end'>尾页</div>
                    <div class='page_ci'>页次：<b>
                            <font style='color:#DE366E'>1</font>/1
                        </b>页&nbsp;<b>15</b>条/页</div>
                    <div class='page_jump'>转到：<input type="text" style="display:inline-block;width:30px;height:100%;border: none;outline: none;"></div>
                    <select name='page' size='1'>
                        <option value='1' selected>第1页</option>
                    </select>
                </div>-->
                  <div class="turnPage center fr" id="aa">
                  {$arry->render()}
	              </div>


            </div>

        </div>
    </div>
     {include file='common/bottom'}
    <!--弹框 -->
    <!--<div class="this_alert dis_none">
    </div>-->
    <!-- 备注 -->
   <!-- <div class="alert_change_box dis_none">
        <div class="change_head">
            我的单子备注（仅自己可见）
        </div>
        <div class="change_container">
            <iframe src="change_alert.html" frameborder="0" style="height:487px;display:block;width:100%;"></iframe>
        </div>
        <span style="display:inline-block;line-height:42px;position: absolute;right: 0;top: 0;padding-right: 10px;cursor: pointer;"
            class="close_alert">关闭</span>
    </div>-->


</body>
<script>
    function click_alert() {
        $(".this_alert").removeClass("dis_none");
        $(".alert_change_box").removeClass("dis_none")
        $(".close_alert").on("click", function () {
            $(".this_alert").addClass("dis_none");
            $(".alert_change_box").addClass("dis_none")
        })
    }
</script>
<script>
	$(".single_tab_type").click(function(){
		$(this).addClass("checked");
		$(this).siblings(".single_tab_type").removeClass("checked");
	})
</script>
 <!--<script>
	var aa=$(".change_goods").children("a");
	
	for (var i=0;i<aa.length;i++) {
		const ele=aa[i];
		console.log(ele)
	}
</script>-->
</html>


<!--导航事件统计-->